package com.ckr.util;

import com.ckr.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * Shiro工具类
 *
 * @author Shadowckr
 * @create 2022-02-08 12:49
 */
public class ShiroUtil {
    public static AccountProfile getProfile() {
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
